import request from '@/utils/libs/request'

/**
 * 司机列表
 * @param params
 */
export function driverList(params: Record<string, any>) {
    return request.get('driver/list', { params })
}

/**
 * 添加司机
 * @param params
 */
export function addDriver(params: Record<string, any>) {
    return request.post('driver/add', params)
}

/**
 * 编辑司机
 * @param params
 */
export function editDriver(params: Record<string, any>) {
    return request.post('driver/edit', params)
}

/**
 * 删除司机
 * @param params
 */
export function deleteDriver(params: Record<string, any>) {
    return request.get('driver/delete',  { params })
}